﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000B7 RID: 183
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ArchiveData : IMessage<ArchiveData>, IMessage, IEquatable<ArchiveData>, IDeepCloneable<ArchiveData>, IBufferMessage
	{
		// Token: 0x17000251 RID: 593
		// (get) Token: 0x06000832 RID: 2098 RVA: 0x000178EB File Offset: 0x00015AEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ArchiveData> Parser
		{
			get
			{
				return ArchiveData._parser;
			}
		}

		// Token: 0x17000252 RID: 594
		// (get) Token: 0x06000833 RID: 2099 RVA: 0x000178F2 File Offset: 0x00015AF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ArchiveDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000253 RID: 595
		// (get) Token: 0x06000834 RID: 2100 RVA: 0x00017904 File Offset: 0x00015B04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ArchiveData.Descriptor;
			}
		}

		// Token: 0x06000835 RID: 2101 RVA: 0x0001790B File Offset: 0x00015B0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ArchiveData()
		{
		}

		// Token: 0x06000836 RID: 2102 RVA: 0x0001794C File Offset: 0x00015B4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ArchiveData(ArchiveData other) : this()
		{
			this.archiveMissingEquipmentIdList_ = other.archiveMissingEquipmentIdList_.Clone();
			this.relicList_ = other.relicList_.Clone();
			this.killMonsterList_ = other.killMonsterList_.Clone();
			this.archiveAvatarIdList_ = other.archiveAvatarIdList_.Clone();
			this.archiveEquipmentIdList_ = other.archiveEquipmentIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000837 RID: 2103 RVA: 0x000179C5 File Offset: 0x00015BC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ArchiveData Clone()
		{
			return new ArchiveData(this);
		}

		// Token: 0x17000254 RID: 596
		// (get) Token: 0x06000838 RID: 2104 RVA: 0x000179CD File Offset: 0x00015BCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ArchiveMissingEquipmentIdList
		{
			get
			{
				return this.archiveMissingEquipmentIdList_;
			}
		}

		// Token: 0x17000255 RID: 597
		// (get) Token: 0x06000839 RID: 2105 RVA: 0x000179D5 File Offset: 0x00015BD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RelicList> RelicList
		{
			get
			{
				return this.relicList_;
			}
		}

		// Token: 0x17000256 RID: 598
		// (get) Token: 0x0600083A RID: 2106 RVA: 0x000179DD File Offset: 0x00015BDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MonsterList> KillMonsterList
		{
			get
			{
				return this.killMonsterList_;
			}
		}

		// Token: 0x17000257 RID: 599
		// (get) Token: 0x0600083B RID: 2107 RVA: 0x000179E5 File Offset: 0x00015BE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ArchiveAvatarIdList
		{
			get
			{
				return this.archiveAvatarIdList_;
			}
		}

		// Token: 0x17000258 RID: 600
		// (get) Token: 0x0600083C RID: 2108 RVA: 0x000179ED File Offset: 0x00015BED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ArchiveEquipmentIdList
		{
			get
			{
				return this.archiveEquipmentIdList_;
			}
		}

		// Token: 0x0600083D RID: 2109 RVA: 0x000179F5 File Offset: 0x00015BF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ArchiveData);
		}

		// Token: 0x0600083E RID: 2110 RVA: 0x00017A04 File Offset: 0x00015C04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ArchiveData other)
		{
			return other != null && (other == this || (this.archiveMissingEquipmentIdList_.Equals(other.archiveMissingEquipmentIdList_) && this.relicList_.Equals(other.relicList_) && this.killMonsterList_.Equals(other.killMonsterList_) && this.archiveAvatarIdList_.Equals(other.archiveAvatarIdList_) && this.archiveEquipmentIdList_.Equals(other.archiveEquipmentIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600083F RID: 2111 RVA: 0x00017A98 File Offset: 0x00015C98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.archiveMissingEquipmentIdList_.GetHashCode();
			num ^= this.relicList_.GetHashCode();
			num ^= this.killMonsterList_.GetHashCode();
			num ^= this.archiveAvatarIdList_.GetHashCode();
			num ^= this.archiveEquipmentIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000840 RID: 2112 RVA: 0x00017B04 File Offset: 0x00015D04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000841 RID: 2113 RVA: 0x00017B0C File Offset: 0x00015D0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000842 RID: 2114 RVA: 0x00017B18 File Offset: 0x00015D18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.relicList_.WriteTo(ref output, ArchiveData._repeated_relicList_codec);
			this.archiveMissingEquipmentIdList_.WriteTo(ref output, ArchiveData._repeated_archiveMissingEquipmentIdList_codec);
			this.archiveAvatarIdList_.WriteTo(ref output, ArchiveData._repeated_archiveAvatarIdList_codec);
			this.archiveEquipmentIdList_.WriteTo(ref output, ArchiveData._repeated_archiveEquipmentIdList_codec);
			this.killMonsterList_.WriteTo(ref output, ArchiveData._repeated_killMonsterList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000843 RID: 2115 RVA: 0x00017B90 File Offset: 0x00015D90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.archiveMissingEquipmentIdList_.CalculateSize(ArchiveData._repeated_archiveMissingEquipmentIdList_codec);
			num += this.relicList_.CalculateSize(ArchiveData._repeated_relicList_codec);
			num += this.killMonsterList_.CalculateSize(ArchiveData._repeated_killMonsterList_codec);
			num += this.archiveAvatarIdList_.CalculateSize(ArchiveData._repeated_archiveAvatarIdList_codec);
			num += this.archiveEquipmentIdList_.CalculateSize(ArchiveData._repeated_archiveEquipmentIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000844 RID: 2116 RVA: 0x00017C18 File Offset: 0x00015E18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ArchiveData other)
		{
			if (other == null)
			{
				return;
			}
			this.archiveMissingEquipmentIdList_.Add(other.archiveMissingEquipmentIdList_);
			this.relicList_.Add(other.relicList_);
			this.killMonsterList_.Add(other.killMonsterList_);
			this.archiveAvatarIdList_.Add(other.archiveAvatarIdList_);
			this.archiveEquipmentIdList_.Add(other.archiveEquipmentIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000845 RID: 2117 RVA: 0x00017C95 File Offset: 0x00015E95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000846 RID: 2118 RVA: 0x00017CA0 File Offset: 0x00015EA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 104U)
				{
					if (num <= 96U)
					{
						if (num == 42U)
						{
							this.relicList_.AddEntriesFrom(ref input, ArchiveData._repeated_relicList_codec);
							continue;
						}
						if (num != 96U)
						{
							goto IL_42;
						}
					}
					else if (num != 98U)
					{
						if (num != 104U)
						{
							goto IL_42;
						}
						goto IL_7C;
					}
					this.archiveMissingEquipmentIdList_.AddEntriesFrom(ref input, ArchiveData._repeated_archiveMissingEquipmentIdList_codec);
					continue;
				}
				if (num <= 112U)
				{
					if (num == 106U)
					{
						goto IL_7C;
					}
					if (num != 112U)
					{
						goto IL_42;
					}
				}
				else if (num != 114U)
				{
					if (num != 122U)
					{
						goto IL_42;
					}
					this.killMonsterList_.AddEntriesFrom(ref input, ArchiveData._repeated_killMonsterList_codec);
					continue;
				}
				this.archiveEquipmentIdList_.AddEntriesFrom(ref input, ArchiveData._repeated_archiveEquipmentIdList_codec);
				continue;
				IL_42:
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_7C:
				this.archiveAvatarIdList_.AddEntriesFrom(ref input, ArchiveData._repeated_archiveAvatarIdList_codec);
			}
		}

		// Token: 0x04000306 RID: 774
		private static readonly MessageParser<ArchiveData> _parser = new MessageParser<ArchiveData>(() => new ArchiveData());

		// Token: 0x04000307 RID: 775
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000308 RID: 776
		public const int ArchiveMissingEquipmentIdListFieldNumber = 12;

		// Token: 0x04000309 RID: 777
		private static readonly FieldCodec<uint> _repeated_archiveMissingEquipmentIdList_codec = FieldCodec.ForUInt32(98U);

		// Token: 0x0400030A RID: 778
		private readonly RepeatedField<uint> archiveMissingEquipmentIdList_ = new RepeatedField<uint>();

		// Token: 0x0400030B RID: 779
		public const int RelicListFieldNumber = 5;

		// Token: 0x0400030C RID: 780
		private static readonly FieldCodec<RelicList> _repeated_relicList_codec = FieldCodec.ForMessage<RelicList>(42U, EggLink.DanhengServer.Proto.RelicList.Parser);

		// Token: 0x0400030D RID: 781
		private readonly RepeatedField<RelicList> relicList_ = new RepeatedField<RelicList>();

		// Token: 0x0400030E RID: 782
		public const int KillMonsterListFieldNumber = 15;

		// Token: 0x0400030F RID: 783
		private static readonly FieldCodec<MonsterList> _repeated_killMonsterList_codec = FieldCodec.ForMessage<MonsterList>(122U, MonsterList.Parser);

		// Token: 0x04000310 RID: 784
		private readonly RepeatedField<MonsterList> killMonsterList_ = new RepeatedField<MonsterList>();

		// Token: 0x04000311 RID: 785
		public const int ArchiveAvatarIdListFieldNumber = 13;

		// Token: 0x04000312 RID: 786
		private static readonly FieldCodec<uint> _repeated_archiveAvatarIdList_codec = FieldCodec.ForUInt32(106U);

		// Token: 0x04000313 RID: 787
		private readonly RepeatedField<uint> archiveAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04000314 RID: 788
		public const int ArchiveEquipmentIdListFieldNumber = 14;

		// Token: 0x04000315 RID: 789
		private static readonly FieldCodec<uint> _repeated_archiveEquipmentIdList_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x04000316 RID: 790
		private readonly RepeatedField<uint> archiveEquipmentIdList_ = new RepeatedField<uint>();
	}
}
